package org.oneblog.data.query;

import org.oneblog.data.util.JunitConsoleOut;

public class ArticleSolrQuery extends BaseSolrQuery {

    private static final long serialVersionUID = 2419939753560485065L;

    private String keyword;
    
    private String tag;
    
    private String categoryId;
    
    private String id;
    
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ArticleSolrQuery() {
    }

    public String getKeyword() {
        return keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
    
	public String key() {
		return JunitConsoleOut.console("{}_{}_{}_{}_{}", new Object[] {
				getPageNo(), getPageSize(), this.keyword, this.tag, this.categoryId
		});
	}
}
